<!--测试指令-->

<div class="demo-modal" id="editbumen">
	<div class="modal-header">
		<h4 class="modal-title" id="modal-title">
			编辑部门
			<i class="icon icon-guanbi2" ng-click="cancel()"></i>
		</h4>
	</div>
	<div class="modal-body editbumen" id="modal-body">
		<div class="addItem">
			<div class="addItem-head">
				<span>*</span>
				所属上级
			</div>
			<div class="line-block filed">
		        <ui-select ng-model="param2.parentId">
		            <ui-option  ng-repeat="i in param1.parents" value="i.id">{{i.name}}</ui-option>
		        </ui-select>
		    </div>
		</div>
		<div class="addItem">
			<div class="addItem-head">
				<span>*</span>
				部门名称
			</div>
			<div class="item-content">
    			<span class="line-block" style="width: 220px;">
			        <input type="text" class="form-control" 
			        	ng-class="{'error':name1}"
			        	placeholder="输入部门名称" 
			        	ng-model="param2.name" />
			    </span>
    		</div>
		</div>
	</div>
	<div class="modal-footer">
		<button class="btn btn-primary" type="button" ng-click="tiJiao1()">确认提交</button>
		<!--<button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>-->
	</div>
</div>